@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background-color: #f5f5f5;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

a,
// s {
//   text-decoration: none;
//   outline: none;
//   blur: expression(this.onFocus()=this.blur());
//   -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
//   -webkit-tap-highlight-color: transparent;
// }

div:focus {
  outline: none;
}

/* 去掉input尾部上下小箭头 start */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  -o-appearance: none !important;
  -ms-appearance: none !important;
  appearance: none !important;
  margin: 0;
}

input[type='number'] {
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  -o-appearance: textfield;
  -ms-appearance: textfield;
  appearance: textfield;
}

/* 去掉input尾部上下小箭头 end */

// dialog__body的padding设置
.el-dialog__body {
  padding: 20px !important;
}

.el-button {
  height: 36px;
}

.cell {
  .el-button {
    height: 30px;
  }
}

// echart防止标题过高
.echarts{
  padding-top: 10px;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

// 查询样式
.queryStyle {
  width: 15%;
  float: left;
  margin-right: 20px;

  &:last-child {
    margin-right: 0;
  }
}

.querBox {
  border-bottom: 1px solid #ededed;
  margin: 0 -20px 10px -20px;
  padding: 0 10px;

  label::before {
    display: none !important;
  }

  .el-form-item--medium {
    margin-bottom: 18px;
  }
}

// main-container global css
.app-container {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .app-wrap {
    height: 100%;
    background-color: #fff;
    padding: 20px;
  }

  .el-table {
    margin: 10px 0;

    .el-radio__label {
      padding-left: 0;
    }
  }

  &::-webkit-scrollbar-track-piece {
    background: transparent;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #d7d8da;
    border-radius: 20px;
  }
}
// 暂无数据
.noDataAvailable{
  width: 30%;
  text-align: center;
  margin:7% auto;
  color: #999999;
}

.mobile {
  .app-container {
    padding: 0 9px 60px 16px;
  }
}

// 点击信息查询
.item_details{
  cursor: pointer;
  color: cornflowerblue;
  padding-bottom: 2px;
  border-bottom: 2px solid cornflowerblue;
  font-size: 18px;
  font-weight: 600px;
}

// 汇总字段样式
.statistic{
  font-size: 18px;
  font-weight: 600;
  p{
    margin-right: 20px;
    span{
      font-size: 16px !important;
    }
  }
}

// border盒子
.border-box {
  max-height: 700px;
  border: 1px solid #ededed;
  padding: 10px;
  border-radius: 5px;
  overflow: auto;
}
.box-title{
  font-size: 17px;
  font-weight: 600;
  color: #666666;
}
.border-item {
  padding-top: 10px;
  background-color: #F9F9F9;
  border-radius: 5px;
}

// 基础表单框架盒子(优化)
.item-form{
  line-height: 50px;
  text-align: center;
  border: 1px solid #DDDDDD;
  border-bottom: none;
  display: flex;
  .title{
    font-weight: 550;
    font-size: 17px;
  }
  .item-clear{
    min-height: 50px;
    font-weight: 550;
    font-size: 17px;
    border-left: 1px solid #DDDDDD;
    text-align: left;
    padding: 0;
    margin: 0;
    height: 50px;
    padding-top: 5px;
    padding-left: 15px;
    .el-form-item__error{
      z-index: 100;
      background-color: #fff;
    }
  }
}
.item-form:last-child{
  border-bottom: 1px solid #DDDDDD;
}

// 基础表单框架盒子
.item-box{
  line-height: 50px;
  text-align: center;
  border: 1px solid #DDDDDD;
  border-bottom: none;
  .title{
    font-weight: 550;
    font-size: 17px;
  }
  .content{
    min-height: 50px;
    font-weight: 550;
    font-size: 17px;
    border-left: 1px solid #DDDDDD;
    padding-left: 15px;
    text-align: left;
    .item-clear{
      padding: 0;
      margin: 0;
      height: 50px;
      padding-top: 5px;
      .el-form-item__error{
        z-index: 100;
        background-color: #fff;
      }
    }
  }
}
.item-box:last-child{
  border-bottom: 1px solid #DDDDDD;
}

// 基础复杂表单框架盒子
.border-item-shadow {
  margin: 10px 0 30px 0;
  box-shadow: 0px 0px 7px 0px rgba(128, 128, 128,0.5);
  border-radius: 5px;
  padding: 5px;
  overflow:hidden;
  .box-title{
    font-size: 17px;
    font-weight: 600;
    color: #666666;
    margin: 20px 10px;
  }
}

/* 文本超出隐藏 */
.text-cut {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.colorGre {
  color: green;
  font-size: 14px;
  font-weight: 600;
}
.colorYe {
  color: #E6A23C;
  font-size: 14px;
  font-weight: 600;
}
.colorRed {
  color: crimson;
  font-size: 14px;
  font-weight: 600;
}
.mustPass{
  color: crimson;
  font-size: 18px;
  font-weight: 600;
  margin-left: 1px;
}
.noMustPass{
  display: none;
}
.colorCorn {
  color: #6495ED;
}
.colorDark {
  color: #E9966A;
}
.colorBurl {
  color: #DEB887;
}

// 宽度
.width90px {
  width: 90px;
}
.width100px {
  width: 100px;
}
.width120 {
  width: 120px;
}
.width130 {
  width: 130px;
}
.width150 {
  width: 150px;
}
.width160 {
  width: 150px;
}
.width180 {
  width: 180px;
}
.width200 {
  width: 200px;
}
.width240 {
  width: 240px;
}
.width280 {
  width: 280px;
}
.width300 {
  width: 300px;
}
.width360 {
  width: 360px;
}

.width5 {
  width: 5%;
}
.width10 {
  width: 10%;
}
.width15 {
  width: 15%;
}
.width20 {
  width: 20%;
}

.width25 {
  width: 25%;
}

.width30 {
  width: 30%;
}

.width40 {
  width: 40%;
}

.width45 {
  width: 45%;
}

.width50 {
  width: 50%;
}

.width55 {
  width: 55%;
}

.width60 {
  width: 60%;
}

.width60px {
  width: 55px;
}

.width70 {
  width: 70%;
}

.width80 {
  width: 80%;
}

.width90 {
  width: 90%;
}

.width100 {
  width: 100%;
}

// flex布局
.flex {
  display: flex;
  align-items: center;
}

.flexNo {
  display: flex;
}

.flexStart {
  display: flex;
  align-items: flex-start;
}

.flexStartDetween {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.flexWrapStartDetween {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}

.flexWrapStartEvenly {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-evenly;
}

.flexCenter {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flexDetween {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flexAround {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.flexEvenly {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.flexWrap {
  display: flex;
  flex-wrap: wrap;
}

.flexWrapDetween {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.flexWrapAround {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

// margin样式
.margin10 {
  margin: 10px;
}
.marginT5 {
  margin-top: 5px;
}
.marginT10 {
  margin-top: 10px;
}
.marginB5 {
  margin-bottom: 5px;
}
.marginB10 {
  margin-bottom: 10px;
}
.marginL10 {
  margin-left: 10px;
}
.marginL20 {
  margin-left: 20px;
}
.marginL30 {
  margin-left: 30px;
}

.marginL70 {
  margin-left: 70%;
}

.marginL80 {
  margin-left: 80%;
}

.marginR5 {
  margin-right: 5px;
}

.marginR10 {
  margin-right: 10px;
}

.marginT20 {
  margin-top: 20px;
}

.marginB20 {
  margin-bottom: 20px;
}

.marginR20 {
  margin-right: 20px;
}

.marginLR10 {
  margin: 0 10px;
}

.marginLR20 {
  margin: 0 20px;
}

.marginTB10 {
  margin: 10px 0;
}

.marginTB20 {
  margin: 20px 0;
}


// padding样式
.padding10 {
  padding: 10px;
}

.paddingT10 {
  padding-top: 10px;
}

.paddingB10 {
  padding-bottom: 10px;
}

.paddingL10 {
  padding-left: 10px;
}

.paddingR10 {
  padding-right: 10px;
}

.paddingT20 {
  padding-top: 20px;
}

.paddingB20 {
  padding-bottom: 20px;
}

.paddingL20 {
  padding-left: 20px;
}

.paddingR20 {
  padding-right: 20px;
}

.paddingLR10 {
  padding: 0 10px;
}

.paddingLR20 {
  padding: 0 20px;
}

.paddingTB10 {
  padding: 10px 0;
}

.paddingTB20 {
  padding: 20px 0;
}

// 文本居中
.textCenter {
  text-align: center;
}

.fontSize16 {
  font-size: 18px;
}
.fontSize17 {
  font-size: 17px;
  font-weight: 600;
}
.fontSize18 {
  font-size: 18px;
  font-weight: 800;
}